package com.platform.wechat.service;

import com.platform.wechat.common.JsonBean;
import com.platform.wechat.entity.Registration;
import org.apache.ibatis.annotations.Param;

/**
 * @author gpx
 * @company XXXX公司
 * @create 2021-07-28 15:00
 */
public interface RegistrationService {

    /**
    * @Description: 时间范围查询（今天+最近七天）
    * @Param: [status, hospitalId]
    * @return: com.platform.wechat.common.JsonBean
    * @Author: guopeixin
    * @Date: 2021/7/28
    * @Time: 16:29
    */
    JsonBean selectDoctorByTime(Integer officesId, Integer hospitalId);

    /**
    * @Description: 更具医院，科室，医生职称，姓名查询
    * @Param: [hospitalName, officesName, doctorTitle, doctorName]
    * @return: com.platform.wechat.common.JsonBean
    * @Author: guopeixin
    * @Date: 2021/7/28
    * @Time: 20:22
    */
    JsonBean selectDoctor(String hospitalName, String officesName, String doctorTitle, String doctorName);


    /**
     * 根据就诊人查订单
     * @param patientName
     * @return
     */
    JsonBean select(String patientName);

    /**
     * 根据电话查就诊人id
     * @param platformPhone
     * @return
     */
    JsonBean selectName(String platformPhone);

    /**
     * 查询详细信息
     * @param registrationId
     * @return
     */
    JsonBean selects(Integer registrationId);


    /** 
    * @Description: 添加Registration 挂号记录
    * @Param: [registration] 
    * @return: com.platform.wechat.common.JsonBean 
    * @Author: guopeixin
    * @Date: 2021/7/28 
    * @Time: 21:59        

    */
    JsonBean insertRegistrationRecord(Registration registration);

}
